cmake_minimum_required(VERSION 3.0.2)
project(cg_rc)

add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
  cg_interfaces
  roscpp
  std_msgs
)

catkin_package()

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)

add_executable(rc_controller 
  src/rc_controller.cpp
  src/serial.cpp)
target_link_libraries(rc_controller ${catkin_LIBRARIES})

add_executable(rc_controller_virtual test/rc_controller_virtual.cpp)
target_link_libraries(rc_controller_virtual ${catkin_LIBRARIES})